$.each(allData.xxxb,function(i,v){
    var strs = ``;
    // console.log(v);
    $.each(v.tuijian,function(i,v){
        // console.log(v);
        var str = ``;
        str +=  `<li>
        <div class="p-img">
            <a href="#">
                <img src="${v.img}" alt="">
            </a>
        </div>
        <div class="p-name">
            <a href="#" title="${v.title}">${v.title}</a>
        </div>
        <div class="p-price">
            ¥${v.price}
        </div>`
        strs += str;
    })
    $("#recommend ul").append(strs)
})


$.each(allData.xxxb,function(i,v){
    var strs = ``;
    $.each(v.xinpin,function(i,v){
        var str = ``;
        str +=  `<li>
            <div class="p-img">
                <a href="#">
                    <img src="${v.img}" alt="">
                </a>
            </div>
            <div class="p-name">
                <a href="#" title="${v.title}">${v.title}</a>
            </div>
            <div class="p-price">
                ¥${v.price}
            </div>
        </li>`
        strs += str;
    })
    $("#new ul").append(strs)
})


$.each(allData.xxxb,function(i,v){
    var strs = ``;
    $.each(v.lishi,function(i,v){
        var str = ``;
        str +=  `<li>
            <div class="p-img">
                <a href="#">
                    <img src="${v.img}" alt="">
                </a>
            </div>
            <div class="p-price">
                ¥${v.price}
            </div>
            <div class="p-name">
                <a href="#" title="${v.title}">${v.title}</a>
            </div>
            <div class="p-btn">
                <a href="#">查看详情</a>
            </div>
        </li>`
        strs += str;
    })
    $("#records ul").append(strs)
})